/*
 * @Description:提现记录
 * @Author: iamsmiling
 * @Date: 2021-06-13 14:40:32
 * @LastEditTime: 2021-06-13 14:46:04
 */

enum WithDrawalStatus { waiting, fail, success }

extension WithDrawalStatusKit on WithDrawalStatus {
  String get description => {WithDrawalStatus.fail: "失败原因"}[this] ?? "";

  String get color =>
      {
        WithDrawalStatus.fail: "#FD4707",
        WithDrawalStatus.success: "#199B74",
        WithDrawalStatus.waiting: "#FC8301"
      }[this] ??
      "";

  String get name =>
      {
        WithDrawalStatus.fail: "提现失败",
        WithDrawalStatus.success: "提现成功",
        WithDrawalStatus.waiting: "待审核"
      }[this] ??
      "";
}

class WithdrawalRecordEntity {
  late String label;
  late String star;

  late String rmb;

  late String channel;

  late WithDrawalStatus status;
  late String date;

  WithdrawalRecordEntity(
      {required this.channel,
      required this.label,
      required this.rmb,
      required this.star,
      required this.date,
      required this.status});
}
